package com.llkj.qingnianguoxue.mine.mycourse;

import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.llkj.qingnianguoxue.R;
import com.llkj.qingnianguoxue.base.BaseActivity;
import com.llkj.qingnianguoxue.util.ImageLoadingUtil;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class VideoCallCourseActivity extends BaseActivity {

    @BindView(R.id.flContent)
    FrameLayout flContent;//顶部替换view的布局
    @BindView(R.id.llHead)
    LinearLayout llHead;//包含头像的布局
    @BindView(R.id.ivTeacherHead)
    ImageView ivTeacherHead;
    @BindView(R.id.ivStudentHead)
    ImageView ivStudentHead;
    @BindView(R.id.tvPlayTime)
    TextView tvPlayTime;//通话时长
    @BindView(R.id.btnPlayPause)
    ImageView btnPlayPause;//通话开始结束按钮
    @BindView(R.id.btnExpand)
    TextView btnExpand;//开启小屏按钮

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_video_call_course);
        setTitle("一对一教学", true, TITLE_TYPE_IMG, R.drawable.icon_back, false,-1,-1);
        ButterKnife.bind(this);

        initView();
    }

    private void initView(){
        ImageLoadingUtil.loadingUrl(ivTeacherHead,"http://qingchunguoxue.apptiming.com/Uploads/2017-11-09/5a04254f48b1a.jpg");
        ImageLoadingUtil.loadingUrl(ivStudentHead,"http://qingchunguoxue.apptiming.com/Uploads/2017-09-11/59b5f0faab850.jpg");
    }

    @OnClick({R.id.btnPlayPause, R.id.btnExpand})
    public void onClick(View view){
        switch (view.getId()){
            case R.id.btnPlayPause://开始、关闭
                break;
            case R.id.btnExpand://开启小屏
                break;
        }
    }
}
